/**
 * @name getters
 * @type {any}
 * @function 映射全局变量
 */

const getters = {
  sidebar: state => state.app.sidebar,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  userInfo: state => state.user.userInfo,
  hospitalInfo: state => state.user.hospitalInfo,
  departmentInfo: state => state.user.departmentInfo,
  chattingId: state => state.user.chattingId,
  messageList: state => state.user.messageList,
  doctorInfo: state => state.user.doctorInfo,
  performanceList: state => state.user.performanceList,
  ipAddress: state => state.user.ipAddress,
  checkId: state => state.user.checkId
}
export default getters
